﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Cook
    {
        竹笋炒肉丝,
        剁椒鱼头,
        红烧鲈鱼

    }
    class CookRobot : Robot
    {
        public Cook cookname;

        public override void Working()
        {
            Console.WriteLine("机器人类型:{0},炒的菜名:{1}:", base.name, this.cookname);
        }
        public CookRobot(string name, Cook cookname) : base(name)
        {
            this.cookname = cookname;
        }

        public CookRobot()
        {
        }

        public Cook Cookname
        {
            get { return this.cookname; }
            set { this.cookname = value; }
        }
    }
}
